package com.yushu.authority.service;

import com.baomidou.mybatisplus.service.IService;
import com.yushu.common.util.pager.Pages;

import java.util.List;
import java.util.Map;

import com.yushu.authority.pojo.vo.PmUserVO;
import com.yushu.authority.pojo.bo.PmUser;

/**
 * 
 * @author test
 * @CreateDate 2020-12-03 15:47:25
 */
public interface PmUserService extends IService<PmUser> {
    Pages<PmUserVO> page(Pages<PmUserVO> page);

    boolean deleteBatch(List<PmUser> pmUsers);

    PmUser updateByKey(PmUser pmUser);

    PmUserVO queryPmUserByKey(String id);

    String checkRepeat(Map map);

    List<PmUser> selectList(PmUser pmUser);


    String validateUserName(String userName, String key);
    //验证手机号
    String validateUserTel(String userTel, String key);
    boolean validateEmail(String email);

    @Override
    boolean insert(PmUser entity);

    /**
     * 用户注册
     *
     * @param user
     */
    boolean register(PmUser user);
	//查询当前用户是否绑定角色
    int queryRoleCountOnUsers(List<PmUser> pmUsers);
    
    
     //查询邮箱是否存在
    Map<String ,Object> queryEmail(String userEmail);

    //修改密码
     int changePassword(PmUserVO pmUserVO);

     //验证旧密码是否正确
    PmUser queryoldPassword(String oldPassword,String key);

    PmUser wUserEmail(String userEmail);

    //修改忘记密码
    boolean changeForgetPassword(PmUserVO pmUserVO);

    PmUser validateUserName2(PmUser pmUser);
}
